<?php
include _class('upload');
$upload=new Upload();
$upload->Up($_FILES['upfile']);
$upload->_set();
$upload->checkAndUpload();
$upload->toFile = true;
$upload->makeThumb($upload->_namearray);
//$upload->_fontType = W_ROOT."include/font/simhei.ttf";
$upload->makeWMark($upload->_namearray, /*array('牛行网','http://www.niuxing.com')*/ 4);
$upload->_debug();
?>